

<link rel="preload" href="/static/layui/font/iconfont.woff2?v=282" as="font" type="font/woff2" crossorigin>

<style>
    /* 使用系统默认字体作为备选方案 */
    @font-face {
        font-family: 'layui-icon';
        src: url('/static/layui/font/iconfont.woff2?v=282') format('woff2'),
            url('/static/layui/font/iconfont.woff?v=282') format('woff'),
            url('/static/layui/font/iconfont.ttf?v=282') format('truetype');
        font-display: swap;
        /* 使用 swap 策略加快显示速度 */
    }

    /* 加载动画使用系统图标代替 Layui 图标 */
    .loading-spinner {
        display: inline-block;
        width: 30px;
        height: 30px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #1E9FFF;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* 修改内容网格布局，使用响应式设计 */
    .content-grid {
        display: grid;
        gap: 15px;
        /* 默认移动端布局：两列 */
        grid-template-columns: repeat(2, 1fr);
    }

    /* 平板设备：3列 */
    @media screen and (min-width: 768px) {
        .content-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* 桌面设备：4列 */
    @media screen and (min-width: 1024px) {
        .content-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* 大屏设备：5列 */
    @media screen and (min-width: 1440px) {
        .content-grid {
            grid-template-columns: repeat(5, 1fr);
        }
    }

    /* 优化卡片样式 */
    .content-card {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        transition: all 0.3s;
        /* 添加最小宽度确保内容不会过于拥挤 */
        min-width: 140px;
    }

    .content-image {
        width: 100%;
        /* 根据屏幕宽度调整图片高度 */
        aspect-ratio: 3/4;
        object-fit: cover;
    }

    .content-info {
        padding: 10px;
    }

    .content-title {
        font-size: 13px;
        line-height: 1.4;
        color: #333;
        /* 限制标题最多显示2行 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;

        /* 移动端优化：调整字体大小 */
        @media screen and (max-width: 767px) {
            font-size: 12px;
        }
    }

    /* 修改分类样式 */
    .category-list {
        display: flex;
        gap: 8px;
        margin-bottom: 15px;
        flex-wrap: wrap;
        padding: 0 5px;
    }

    .category-item {
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
        background: #f0f0f0;
        transition: all 0.3s;
        font-size: 13px;
        white-space: nowrap;
        position: relative;
        overflow: hidden;
    }

    /* 添加高亮样式 */
    .category-item.active {
        background: #1E9FFF;
        color: #fff;
        font-weight: 500;
    }

    /* 添加点击涟漪效果 */
    .category-item:active::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        animation: ripple 0.6s linear;
    }

    @keyframes ripple {
        to {
            transform: translate(-50%, -50%) scale(2);
            opacity: 0;
        }
    }

    /* 悬停效果 */
    .category-item:hover {
        background: #e0e0e0;
    }

    .category-item.active:hover {
        background: #1890ff;
    }

    /* 容器边距响应式调整 */
    .container {
        padding: 15px;
        max-width: 1400px;
        margin: 0 auto;
    }

    @media screen and (max-width: 767px) {
        .container {
            padding: 10px;
        }
    }

    /* 优化分页在移动端的显示 */
    .pagination {
        margin-top: 20px;
        text-align: center;
    }

    @media screen and (max-width: 767px) {

        .layui-laypage a,
        .layui-laypage span {
            padding: 0 10px;
            margin: 0 2px;
        }
    }

    /* 搜索框容器 */
    .search-container {
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .search-box {
        display: flex;
        gap: 10px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* 搜索输入框 */
    .search-input {
        flex: 1;
        padding: 8px 15px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        font-size: 14px;
        transition: all 0.3s;
        outline: none;
    }

    .search-input:focus {
        border-color: #1E9FFF;
        box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.1);
    }

    /* 搜索按钮 */
    .search-button {
        padding: 8px 20px;
        background: #1E9FFF;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 14px;
    }

    .search-button:hover {
        background: #0d8aee;
    }

    /* 搜索结果提示 */
    .search-result-tip {
        margin: 10px 0;
        padding: 0 5px;
        color: #666;
        font-size: 14px;
    }

    .search-result-tip .keyword {
        color: #1E9FFF;
        font-weight: 500;
    }

    .clear-search {
        color: #1E9FFF;
        cursor: pointer;
        margin-left: 10px;
    }

    .clear-search:hover {
        text-decoration: underline;
    }

    @media screen and (max-width: 767px) {
        .search-box {
            gap: 8px;
        }

        .search-input {
            padding: 6px 12px;
            font-size: 13px;
        }

        .search-button {
            padding: 6px 15px;
            font-size: 13px;
        }
    }
</style>

<div class="container">
    <!-- 内容列表 -->
    <div class="content-grid" id="contentList"></div>

</div>



<script>
    
</script>